#include "Egg.h"
//load vi tri va anh
Egg::Egg(SDL_Surface * img, Point2d pos) :
Gobj(img, pos), m_isEgg(true), m_isDestroy(false)
{

}
Egg::~Egg()
{


}
void Egg::Update(int speed)//update toc do roi
{

	if (bound.y < LINE - image->clip_rect.h)
	{
		Move(0, speed);
	}
	else
	{
		m_isDestroy = true;
	}
	Gobj::Update();
}
